import {RequestUtil} from '@/utils'

export class SystemHttp {
    static PREFIX = "/manager/finance/account"


    static getWxpayPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/wxpay/pageList`, params)

    static addWxpay = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/wxpay/add`, data)

    static updateWxpay = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/wxpay/update/${id}`, data)

    static delWxpay = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/wxpay/delete`, data)

    //--------支付宝开始----------



    static getAlipayPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/alipay/pageList`, params)

    static addAlipay = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/alipay/add`, data)

    static updateAlipay = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/alipay/update/${id}`, data)

    static delAlipay = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/alipay/delete`, data)


}
